package com.aircms.service;

import com.aircms.common.ServerResponse;
import com.aircms.pojo.Users;
import com.aircms.pojo.validation.BaseQueryFieldsValidation;
import com.aircms.pojo.vo.UserRoleVo;

public interface IUsersService {
     ServerResponse index(BaseQueryFieldsValidation baseQueryFields, int pageNum, int pageSize);

     ServerResponse show(Integer id);
     ServerResponse login(String name, String password);
     ServerResponse getUserRoles(Integer userId);
     ServerResponse destroy(Integer id);
     ServerResponse store(Users users);

     ServerResponse update(Users users);
     ServerResponse updateUserAndUserRole(UserRoleVo userRoleVo);
     ServerResponse resetUserPassword(Integer id, String newPassword);
     ServerResponse updatePassword(Integer id, String oldPassword, String newPassword);


}
